local sk__pengri = fk.CreateSkill {

  name = "sk__pengri",

  tags = {  },

}



sk__pengri:addEffect("active", {
  name = "sk__pengri",
  anim_type = "drawcard",
  prompt = "#sk__pengri",
  card_num = 0,
  target_num = 0,
  can_use = function(self, player)
    return player:usedSkillTimes(sk__pengri.name, Player.HistoryPhase) == 0
  end,
  card_filter = Util.FalseFunc,
  on_use = function(self, room, effect)
    local player = effect.from
    player:drawCards(2, sk__pengri.name)
    for _, p in ipairs(room:getOtherPlayers(player)) do
      if player.dead then return end
      if not p.dead and p:inMyAttackRange(player) then
        local use = room:askForUseCard(p, "slash", "slash", "#sk__pengri-slash:"..player.id, true, {must_targets = {player.id}})
        if use then
          use.extraUse = true
          room:useCard(use)
        end
      end
    end
  end,
})

return sk__pengri